#include <iostream>

int const maxn = 200;
int seat[maxn][maxn];
int n, a, b;

int main()
{
	std::cin >> n >> a >> b;
	if (n > a * b) {
		std::cout << "-1\n"; return 0;
	}
	for (int i = 1; i <= n; i++) {
		int x = (i - 1) / b;
		int y = (i - 1) % b;
		if (!(b & 1) && (x & 1)) y ^= 1;
		seat[x][y] = i;
	}
	for (int i = 0; i < a; i++) {
		for (int j = 0; j < b; j++)
			std::cout << seat[i][j] << ' ';
		std::cout << '\n';
	}
}

